package club.dmyang.service;

import club.dmyang.entity.Carousel;

import java.util.List;

/**
 * Created by brss on 2018/8/17.
 */
public interface CarouselService {

    /**
     * 用id查
     * @param id
     * @return
     */
    public Carousel findOneById(Integer id);

    /**
     * 查询所有
     * @return
     */
    public List<Carousel> findAll();

    /**
     * 更新
     * @param carousel
     * @return
     */
    public boolean updateOneById(Carousel carousel);

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean delOneById(Integer id);

    /**
     * 添加一条
     * @param carousel
     * @return
     */
    public boolean addOne(Carousel carousel);
}
